package pers.qianyu.module.core.domain.system.converter;

import org.springframework.stereotype.Component;
import pers.qianyu.module.core.comm.BaseConverter;
import pers.qianyu.module.core.domain.system.dto.SysUserFollowDTO;
import pers.qianyu.module.core.domain.system.entity.SysUserFollowPO;

/**
 * @author mizzle rain
 * @date 2021-04-07 15:21
 */
@Component
public class SysUserFollowConverter extends BaseConverter {
    public SysUserFollowPO convertToPO(SysUserFollowDTO sysUserFollowDTO) {
        SysUserFollowPO po = new SysUserFollowPO();
        po.setUserId(sysUserFollowDTO.getUserId());
        po.setFollowedUserId(sysUserFollowDTO.getFollowedUserId());
        return po;
    }
}
